package com.coolapk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

public class User {
    private Integer id;

    private String userName;

    private String email;

    private String password;

    private String phone;

    private String headImg;

    private Integer sex;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    private Integer status;

    private Date createTime;

    private String backgroundImg;

    private String address;

    private String addressCode;

    private String personal;
    //注册验证码
    private String code;

    private Integer articleNum;

    private Integer noticedNum;

    private Integer beNoticedNum;

    private MultipartFile headFile;

    private MultipartFile bgcFile;

    public MultipartFile getHeadFile() {
        return headFile;
    }

    public void setHeadFile(MultipartFile headFile) {
        this.headFile = headFile;
    }

    public MultipartFile getBgcFile() {
        return bgcFile;
    }

    public void setBgcFile(MultipartFile bgcFile) {
        this.bgcFile = bgcFile;
    }

    public Integer getArticleNum() {
        return articleNum;
    }

    public void setArticleNum(Integer articleNum) {
        this.articleNum = articleNum;
    }

    public Integer getNoticedNum() {
        return noticedNum;
    }

    public void setNoticedNum(Integer noticedNum) {
        this.noticedNum = noticedNum;
    }

    public Integer getBeNoticedNum() {
        return beNoticedNum;
    }

    public void setBeNoticedNum(Integer beNoticedNum) {
        this.beNoticedNum = beNoticedNum;
    }

    public Integer getId() {
        return id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg == null ? null : headImg.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBackgroundImg() {
        return backgroundImg;
    }

    public void setBackgroundImg(String backgroundImg) {
        this.backgroundImg = backgroundImg == null ? null : backgroundImg.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getAddressCode() {
        return addressCode;
    }

    public void setAddressCode(String addressCode) {
        this.addressCode = addressCode;
    }

    public String getPersonal() {
        return personal;
    }

    public void setPersonal(String personal) {
        this.personal = personal == null ? null : personal.trim();
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", headImg='" + headImg + '\'' +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", status=" + status +
                ", createTime=" + createTime +
                ", backgroundImg='" + backgroundImg + '\'' +
                ", address='" + address + '\'' +
                ", addressCode=" + addressCode +
                ", personal='" + personal + '\'' +
                ", code='" + code + '\'' +
                ", articleNum=" + articleNum +
                ", noticedNum=" + noticedNum +
                ", beNoticedNum=" + beNoticedNum +
                ", headFile=" + headFile +
                ", bgcFile=" + bgcFile +
                '}';
    }
}